import request from '@/utils/processRequest';

// 根据key 获取菜单id
export function getKeyByMenuId(data) {
  return request({
    url: '/bpmMenu/getKeyByMenuId',
    method: 'post',
    data
  });
}
// 在线预览
export function previewicon(params) {
  return request({
    url: '/onlinePreview',
    method: 'get',
    params
  });
}

// 根据key 获取菜单id
export function getTableInfoByMenu(data) {
  return request({
    url: '/dynamicMenu/getTableInfo',
    method: 'post',
    data
  });
}
